// Reflect.apply 调用一个函数，并为其一个一个this指针和参数列表
/* function sum(a,b){
    return a+b+this.suffix;
} */
class Sum{
    constructor(a,b){
        return  a+b+this.suffix;
    }
}
let person ={
    suffix:'$'
}
//1函数 2 this对象 后面是传递给函数的参数
 let result = Reflect.apply(Sum,person,[1,2]);
console.log(result) 
// Reflect.constructor
//TypeError: Class constructor Sum cannot be invoked without 'new'
//let result2 = Sum.apply(person,[1,2]);
//console.log(result2)